package com.zm.devmag.device.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.zm.devmag.device.Vo.DeviceDetaiVo;
import com.zm.devmag.device.po.DeviceDetail;


@Repository
public interface DeviceDetailMapper {

	//根据id删除用户
    int deleteOneById(Long id);

   int insertDeviceDetailBatch(@Param("list") List<DeviceDetail> inlist);
    //通过id查看用户
    DeviceDetaiVo selectById(Long id);
    List<DeviceDetaiVo>selectAll(Map<String,Object>cond);
    int insertOneDevice(DeviceDetail dd);
    int updateByPrimaryKeySelective(DeviceDetail dd);
    DeviceDetail selectByIdRturnDD(Long id);
    List<String> selectAllDeviceNo();
    int selectDDConutByDcid(Long dcid);
    DeviceDetaiVo selectDeviceByNo(String para);
    List<DeviceDetaiVo> selectDeviceByLikeNO( Map<String, Object> cond);
    int checkIsHasByNO(String para);
    Long getMaxIdValue();
    int selectAllCount(Map<String, Object> cond);
    List<DeviceDetaiVo> selectAllNoLimit(Map<String,Object>cond);  
    List<DeviceDetaiVo> selectAllNoConf();
    List<DeviceDetaiVo> selectStaticAll(Map<String,Object>cond);
    int selectStaticAllCount(Map<String, Object> cond);
    List<DeviceDetaiVo> selectStaticAllNoLimit(Map<String,Object>cond);
}